package com.flycms.module.soft.dao;
import java.util.List;

import com.flycms.esmodule.model.EsCase;
import com.flycms.module.soft.model.Soft;
import com.flycms.module.soft.model.Case;
import org.apache.ibatis.annotations.Param;

public interface CaseDao {
	int insert(Case record);
	List<EsCase> queryAll();
	int delete(Integer id);
	Case queryByPk(Integer id);
	int update(Case record);
	List<Soft> queryByPage(@Param(value = "case_name") String case_name,
						   @Param(value = "category_id") Integer category_id,
						   @Param(value = "orderby") String orderby,
						   @Param(value = "order") String order,
						   @Param(value = "offset") Integer offset,
						   @Param(value = "rows") Integer rows);
	Integer countCase(@Param(value = "case_name") String case_name,
					  @Param(value = "category_id") Integer category_id);

	List<Case> queryByIds(List<Integer> Ids);
}
 